//
//  MTTool.m
//  ShiShiBang
//
//  Created by 宋宝强 on 16/9/25.
//  Copyright © 2016年 motianjituan. All rights reserved.
//

#import "MTTool.h"

#define kUserToken @"token"

@interface MTTool ()

@end

@implementation MTTool

+ (void)toolSaveToken:(NSString *)token{
    [[NSUserDefaults standardUserDefaults] setObject:token forKey:kUserToken];
    [[NSUserDefaults standardUserDefaults] synchronize];
}

+ (NSString *)toolGetToken{
    return [[NSUserDefaults standardUserDefaults] objectForKey:kUserToken];
}

+ (void)toolDeleteToken{
    [[NSUserDefaults standardUserDefaults] removeObjectForKey:kUserToken];
    [[NSUserDefaults standardUserDefaults] synchronize];
}


@end
